package main 

import "fmt"

//声明全局变量
var m1=100
var m2=200
var name2="lucy"

var (
	m3=666
	m4=6000
	name3="tom and hua"
)
func main(){

	//1 声明多个变量方式1
	var n1,n2,n3 int
	fmt.Println("n1=",n1,"n2=",n2,"n3=",n3)

	//方式2
	var n11,name,n33 = 100,"jack",300

	fmt.Println("n11=",n11,"name=",name,"n33=",n33)


	//方式3
	j1,name,j2 :=101,"i lkie lucy",888
	fmt.Println(j1,name,j2)

	fmt.Println(m1,m2,name2)
	fmt.Println(m3,m4,name3)
}